//我已阅读同意《猎才宝用户协议》
$(".choice img").click(function(){
    var url = $(".choice img").attr("src");

    if(url == theme_url + "/images/green_yes1.png"){
        $(".choice img").attr("src", theme_url + "/images/green_yes.png");
        $(".choice span").hide();
    }else{
        $(".choice img").attr("src", theme_url + "/images/green_yes1.png");
        $(".choice span").show();
    }
})


//点击提交认证
$(".submit_auth").click(function(){
    var e = window.event || e,
       errNum = 0;
    if(e.preventDefault){
        e.preventDefault();
    }else{
        window.event.returnValue = false; 
    }
    //触发验证
    $('input').trigger('blur');
    errNum = $('span.warning:visible').length;
    //console.log($('span.warning:visible'));
    var url = $(".choice img").attr("src");
    if(url == theme_url + "/images/green_yes1.png" ){
        $(".choice span").show();
        //$(".modall-back").show();
        return false;
    }else if (errNum == 0) {
        $('.submit_form').get(0).submit();
    }
})